package ae.pcfc.cldos.online.common.tscdb.domain;

import static javax.persistence.GenerationType.IDENTITY;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import ae.pcfc.cldos.online.common.domain.BaseEntity;

/**
 * TTscCity entity. @author Asna Khader
 */
@Entity
@Table(name = "T_TSC_CITY")
public class TTscCity extends BaseEntity implements java.io.Serializable {

	// Fields
	public static final String CITY_COUNTRY_CODE = "cityCountryCode";
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String cityCountryCode;
	private String cityCode;
	private String cityName;
	private String cityNameArb;
	private String cityStatus;
	private String cityCreateduser;
	private Date cityCreatedtime;
	private String cityModifieduser;
	private Date cityModifiedtime;
	private BigDecimal cityAirFare;

	// Constructors

	/** default constructor */
	public TTscCity() {
	}

	/** full constructor */
	public TTscCity(String cityCountryCode, String cityCode, String cityName,
			String cityNameArb, String cityStatus, String cityCreateduser,
			Date cityCreatedtime, String cityModifieduser,
			Date cityModifiedtime, BigDecimal cityAirFare) {
		this.cityCountryCode = cityCountryCode;
		this.cityCode = cityCode;
		this.cityName = cityName;
		this.cityNameArb = cityNameArb;
		this.cityStatus = cityStatus;
		this.cityCreateduser = cityCreateduser;
		this.cityCreatedtime = cityCreatedtime;
		this.cityModifieduser = cityModifieduser;
		this.cityModifiedtime = cityModifiedtime;
		this.cityAirFare = cityAirFare;
	}

	// Property accessors
	

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "CITY_CODE", unique = true, nullable = false, length = 10)
	public String getCityCode() {
		return this.cityCode;
	}

	public void setCityCode(String cityCode) {
		this.cityCode = cityCode;
	}
	
	@Column(name = "CITY_COUNTRY_CODE", length = 10)
	public String getCityCountryCode() {
		return this.cityCountryCode;
	}

	public void setCityCountryCode(String cityCountryCode) {
		this.cityCountryCode = cityCountryCode;
	}
	
	@Column(name = "CITY_NAME", length = 50)
	public String getCityName() {
		return this.cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	@Column(name = "CITY_NAME_ARB", length = 50)
	public String getCityNameArb() {
		return this.cityNameArb;
	}

	public void setCityNameArb(String cityNameArb) {
		this.cityNameArb = cityNameArb;
	}

	@Column(name = "CITY_STATUS", length = 1)
	public String getCityStatus() {
		return this.cityStatus;
	}

	public void setCityStatus(String cityStatus) {
		this.cityStatus = cityStatus;
	}

	@Column(name = "CITY_CREATEDUSER", length = 50)
	public String getCityCreateduser() {
		return this.cityCreateduser;
	}

	public void setCityCreateduser(String cityCreateduser) {
		this.cityCreateduser = cityCreateduser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CITY_CREATEDTIME", length = 7)
	public Date getCityCreatedtime() {
		return this.cityCreatedtime;
	}

	public void setCityCreatedtime(Date cityCreatedtime) {
		this.cityCreatedtime = cityCreatedtime;
	}

	@Column(name = "CITY_MODIFIEDUSER", length = 50)
	public String getCityModifieduser() {
		return this.cityModifieduser;
	}

	public void setCityModifieduser(String cityModifieduser) {
		this.cityModifieduser = cityModifieduser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CITY_MODIFIEDTIME", length = 7)
	public Date getCityModifiedtime() {
		return this.cityModifiedtime;
	}

	public void setCityModifiedtime(Date cityModifiedtime) {
		this.cityModifiedtime = cityModifiedtime;
	}

	@Column(name = "CITY_AIR_FARE", precision = 22, scale = 0)
	public BigDecimal getCityAirFare() {
		return this.cityAirFare;
	}

	public void setCityAirFare(BigDecimal cityAirFare) {
		this.cityAirFare = cityAirFare;
	}
}